@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="teacherInfoForm">
            <input type="hidden" id="sexValue" value="${item.sex}">
            <input type="hidden" id="id" value="${item.id}">
            <input type="hidden" id="orgId" value="${item.orgId}">
            <input type="hidden" id="uploadUrl" value="${uploadUrl}">
            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="orgName" name="所属学校" value="${item.orgName}" underline="true" disabled="disabled"/>
                    <#input id="name" name="姓名" underline="true" value="${item.name}" span="true"/>
                    <#select id="sex" name="性别" underline="true" value="${item.sex}">
                    @for(sex in GBSex){
                    <option value="${sex.code}" ${sex.code==item.sex?'selected':""}>${sex.cname}</option>
                    @}
                </#select>
                <#select id="papersType" name="证件类型" underline="true" value="${item.papersType}">
                @for(papersType in GBPapersType){
                <option value="${papersType.code}" ${papersType.code==item.papersType?'selected':""}>${papersType.cname}</option>
                @}
            </#select>
            <#input id="nativePlace" name="籍贯" underline="true" value="${item.nativePlace}"/>
            <#select id="politicalStatus" name="政治面貌" underline="true" value="${item.politicalStatus}">
            <option value="">请选择</option>
            @for(political in GBPolitical){
            <option value="${political.code}" ${item.politicalStatus==(''+political.code+'')?'selected':""}>${political.cname}</option>
            @}
        </#select>
        <#input id="familyAddress" name="家庭地址" underline="true" value="${item.familyAddress}"/>
        <#input id="email" name="电子邮箱" underline="true" value="${item.email}"/>
        <#avatar id="avatar" storageUrl="${storageUrl}"  name="用户头像" avatarImg="${item.photo}" underline="true"/>
    </div>

                <div class="col-sm-6">
                    <#select id="userType" name="角色类型" underline="true" value="${item.userType}">
                    @for(sysRole in sysRoles){
                    <option value="${sysRole.id}" ${sysRole.id==item.userType?'selected':""}>${sysRole.cname}</option>
                    @}
                </#select>
    <#input id="cellphone" name="登录手机" underline="true" value="${item.cellphone}"/>
    <#input id="schoolCard" name="校卡号" underline="true"  value="${item.schoolCard}"/>
    <#input id="papersNumber" name="证件号码" underline="true" value="${item.papersNumber}"/>
    <#select id="nationCode" name="民族" underline="true" value="${item.nationCode}">
    <option value="">请选择</option>
    @for(nation in GBNation){
    <option value="${nation.code}" ${nation.code==item.nationCode?'selected':""}>${nation.cname}</option>
    @}
</#select>
<#input id="birthday" name="出生日期" underline="true" value="${item.birthday}"/>
<#input id="telephone" name="联系电话" underline="true" value="${item.telephone}"/>
<#input id="postCode" name="邮编" underline="true" value="${item.postCode}"/>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10"  style="text-align: center">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="PtTeacherInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="PtTeacherInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/system/ptTeacher/ptTeacher_info.js"></script>
<script>
    laydate.render({
        elem: '#birthday',
        trigger: 'click'

    });
</script>
@}
